package com.tkwayne.ftpclient.config;

import org.apache.commons.pool2.impl.AbandonedConfig;

/**
 * Ftp object FTPAbandonedConfig
 * @author wayne
 * @description
 * @date 2019/7/27 15:26
 */
public class FTPAbandonedConfig extends AbandonedConfig {

    //是否开启清理对象,默认关闭
    private boolean removeAbandonedOnMaintenance = false;

    //超时时间,默认5分钟
    private int removeAbandonedTimeout = 300;

    public boolean getRemoveAbandonedOnMaintenance() {
        return this.removeAbandonedOnMaintenance;
    }

    public void setRemoveAbandonedOnMaintenance(final boolean removeAbandonedOnMaintenance) {
        this.removeAbandonedOnMaintenance = removeAbandonedOnMaintenance;
    }

    @Override
    public int getRemoveAbandonedTimeout() {
        return removeAbandonedTimeout;
    }

    @Override
    public void setRemoveAbandonedTimeout(int removeAbandonedTimeout) {
        this.removeAbandonedTimeout = removeAbandonedTimeout;
    }
}
